﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace CallbackService
{
    [ServiceBehavior(ConcurrencyMode=ConcurrencyMode.Multiple)]
    public class MyService:IMyContract
    {

        public void MyMethod()
        {
            Console.WriteLine("Inside Mymethod");
            IMyContractCallback callbackInstance = OperationContext.Current.GetCallbackChannel<IMyContractCallback>();
            callbackInstance.OnCallback();
        }
    }
}
